package org.jeecg.modules.kuybCityStandard.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.kuybCityStandard.entity.KuybCityStandard;
import org.jeecg.modules.kuybCityStandard.mapper.KuybCityStandardMapper;
import org.jeecg.modules.kuybCityStandard.service.IKuybCityStandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: kuyb_city_standard
 * @Author: jeecg-boot
 * @Date:   2022-01-03
 * @Version: V1.0
 */
@Service
public class KuybCityStandardServiceImpl extends ServiceImpl<KuybCityStandardMapper, KuybCityStandard> implements IKuybCityStandardService {

@Autowired
KuybCityStandardMapper cityStandardMapper;

    @Override
    public List<KuybCityStandard> getCStandardByCityId(String cityId) {
        QueryWrapper<KuybCityStandard> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("city_Id",cityId);
        List<KuybCityStandard>  standards=cityStandardMapper.selectList(queryWrapper);
        return standards;
    }
}
